package com.jdrx.ocp.beans.dto.platform;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 创建平台信息DTO
 */
@ApiModel(value = "CreatePlatformDTO", description = "创建平台信息DTO")
public class CreatePlatformDTO {

    @NotBlank
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "平台名称", required = true)
    String name;

    @NotBlank
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "平台标识符", required = true)
    String prefix;

    @ApiModelProperty(value = "图标", required = true)
    String icon;

    @ApiModelProperty(value = "是否启用(0表示启用；1表示禁用)", required = true)
    Integer useable;

    @ApiModelProperty(value = "平台应用服务地址(预留) -  内网服务地址", required = true)
    String serverAddress;

    @ApiModelProperty(value = "回调地址 ", required = true)
    String callBackAddress;

    @ApiModelProperty(value = "健康检查地址 ")
    private String  healthAddress;

    @ApiModelProperty(value = "外网服务地址 ")
    private String  outServerAddress;

    @ApiModelProperty(value = "服务说明或备注 ")
    private String  remark;

    @ApiModelProperty(value = "服务供应商名称",notes = "服务供应商名称")
    private String serviceRoviders;

    @ApiModelProperty(value = "服务分组分类 ")
    private Integer serviceGroup;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getUseable() {
        return useable;
    }

    public void setUseable(Integer useable) {
        this.useable = useable;
    }

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public String getCallBackAddress() {
        return callBackAddress;
    }

    public void setCallBackAddress(String callBackAddress) {
        this.callBackAddress = callBackAddress;
    }

    public String getHealthAddress() {
        return healthAddress;
    }

    public void setHealthAddress(String healthAddress) {
        this.healthAddress = healthAddress;
    }

    public String getOutServerAddress() {
        return outServerAddress;
    }

    public void setOutServerAddress(String outServerAddress) {
        this.outServerAddress = outServerAddress;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getServiceRoviders() {
        return serviceRoviders;
    }

    public void setServiceRoviders(String serviceRoviders) {
        this.serviceRoviders = serviceRoviders;
    }

    public Integer getServiceGroup() {
        return serviceGroup;
    }

    public void setServiceGroup(Integer serviceGroup) {
        this.serviceGroup = serviceGroup;
    }
}
